<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div class="bjui-pageContent">
	<c:url value="/admin/message/template_edit" var="action"/>
	<form:form action="${action }" modelAttribute="template" method="post" data-toggle="ajaxform">
	<form:hidden path="code"/>
	<form:hidden path="type"/>
		<table>
				<tr>
					<td>
						<label>编辑编号:${template.code }</label>
					</td>
				</tr>
				<tr>
					<td colspan="3"><label>编辑内容</label> <c:choose>
							<c:when test="${template.type eq 'PHONE' }">
								<form:textarea path="content"/>
							</c:when>
							<c:otherwise>
								<div>
									<form:textarea path="content" data-toggle="kindeditor"/>
								</div>
							</c:otherwise>
						</c:choose></td>
				</tr>
		</table>
		</form:form>
	</div>
	<div class="bjui-pageFooter">
        <ul>
            <li><button type="button" class="btn-close" data-icon="close">关闭</button> </li>
            <li><button type="submit" class="btn-default" data-icon="save">创建</button></li>
        </ul>
    </div>
</body>
</html>